package com.fp.cyclops.demo;

import com.aol.cyclops2.types.anyM.AnyMValue;
import cyclops.control.Try;
import cyclops.monads.AnyM;
import cyclops.monads.WitnessType;
import cyclops.stream.ReactiveSeq;
import org.junit.Test;

import java.util.Optional;

/**
 * Created by user on 17/9/13.
 */
public class AnyMTest {

    @Test
    public void test(){
        AnyMValue tryMonad = AnyM.fromTry(Try.success(20));
        AnyMValue optMonad = AnyM.fromOptional(Optional.of(10));

    }
}
